package com.gyf.edu.web.controller;

import com.gyf.edu.model.User;
import com.gyf.edu.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("user")
public class UserController {

    /*@RequestMapping("login")
    private String login(){
        System.out.println("测试。。。。。");
        return null;
    }*/
    @Autowired
    private IUserService userService;
    public String find(Integer id){
        User user=userService.findByID(id);
        System.out.println(user);
        return null;
    }
}
